package com.leyou.upload.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

//和配置文件中的ly.upload绑定 ，这个类中的属性会根据名字进行绑定
@ConfigurationProperties(prefix = "ly.upload")
public class UploadProperties {

    private String baseUrl; //文件存放路径，fdfs的路径

    private List<String> allowTypes; //允许的类型

    public String getBaseUrl() {
        return baseUrl;
    }

    public void setBaseUrl(String baseUrl) {
        this.baseUrl = baseUrl;
    }


    public List<String> getAllowTypes() {
        return allowTypes;
    }

    public void setAllowTypes(List<String> allowTypes) {
        this.allowTypes = allowTypes;
    }
}
